@import "src/variables.less";
@import "src/mixins.less";

.container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background-color: #fff9ef;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.info-wrapper {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 32rpx;
  .safe-area-padding-bottom();
}

.info-content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  margin-bottom: 72rpx;
  padding: 34rpx 0 64rpx;
  border-radius: 32rpx;
  box-shadow: 0rpx 52rpx 40rpx -20rpx rgba(181, 172, 158, 0.1);
  background-color: #fff;

  .avatar-wrapper {
    flex-shrink: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 278rpx;
    width: 278rpx;
    margin-bottom: 64rpx;
    background-color: #fdf8f4;

    .img {
      flex-shrink: 0;
      height: 278rpx;
      width: 278rpx;
      border-radius: 32rpx;
    }
  }

  .camera {
    position: absolute;
    bottom: -46rpx;
    height: 93.3rpx;
    width: 93.3rpx;
  }

  .row {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    height: 40rpx;
    width: 638rpx;
    margin-bottom: 48rpx;

    .label {
      flex: 1;
      margin-right: 32rpx;
      font-size: 28rpx;
      color: @font-lighter;
    }

    .value {
      margin-right: 16rpx;
      font-size: 28rpx;
      color: @font-normal;
      text-align: right;
      .ellipsis(456rpx);
    }
  }

  .arrow {
    height: 24rpx;
    width: 24rpx;
  }

  .item {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    height: 104rpx;
    width: 622rpx;
    border-radius: 24rpx;
    padding: 0 32rpx 0 36rpx;
    margin-bottom: 24rpx;
    background-color: #f9f9f9;

    .label {
      flex: 1;
      font-size: 24rpx;
      color: #3d3d3d;
    }

    .placeholder {
      font-size: 24rpx;
      color: #3d3d3d;
      opacity: 0.5;
    }

    .tag {
      max-width: 456rpx;
      padding: 4rpx 16rpx;
      font-weight: 600;
      font-size: 20rpx;
    }
  }
}

.btns-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32rpx;

  .btn {
    height: 96rpx;
    width: 330rpx;
    background-color: #fff;
    font-size: 28rpx;
    border: none;
    font-weight: 600;
    color: #3d3d3d;

    &.save {
      background-color: var(--pet-center-theme-color);
    }
  }
}

.block-row {
  flex-shrink: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 64rpx;
  padding: 0 24rpx;

  .block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 180rpx;
    width: 192rpx;
    border-radius: 32rpx;
    background-color: #f9f9f9;

    .top {
      display: flex;
      align-items: baseline;

      .value {
        text-align: center;
        font-weight: 700;
        font-size: 32rpx;
        color: #3d3d3d;
      }

      .unit {
        font-size: 20rpx;
        color: #3d3d3d;
        opacity: 0.5;
      }
    }

    .label {
      margin-top: 32rpx;
      font-size: 24rpx;
      color: @font-lighter;
    }
  }
}

.weight-picker {
  :global(.smart-picker__columns) {
    justify-content: center;
  }
  :global(.smart-picker__column) {
    flex: 0;
    width: auto;
  }
  :global(.smart-picker-column__unit) {
    margin-left: 16rpx;
  }
}
